//
//  CONST.h
//  HotWord
//
//  Created by Rainbow on 8/22/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <QuartzCore/QuartzCore.h>

#define HOTWORD_BASE_URL @"http://www.wordhot.net/wordhot/json/"
//#define HOTWORD_BASE_URL @"http://192.168.1.104/~Rainbow/wordhot/json/"

#define IMAGE_BASE_URL  @"http://www.wordhot.net/json/pic/"

#define MESSAG_TIME_FORMAT      @"yyyy-MM-dd HH:mm:ss"

#define MORE_WORDS              @"update"

#define SAT_WORDS            @"SAT_WORDS"
#define GRE_WORDS            @"GRE_WORDS"
#define IBT_WORDS            @"IBT_WORDS"

#define NOTIFICATION_RECEIVE_MESSAGE    @"NOTIFICATION_RECEIVE_MESSAGE"
#define USERDEFAULT_DEVICE_TOKEN        @"USERDEFAULT_DEVICE_TOKEN"

#define AD_CACHE_KEY        @"AD_CACHE_KEY"


typedef enum 
{
    HotWordViewTypeLearn = 0,
    HotWordViewTypePractice
}HotWordViewType;

typedef enum 
{
    HotWordViewFromBeginning = 0,
    HotWordViewFromLastTime
}HotWordViewFrom;

typedef enum
{
    HotWordGetWordPositionFirst = 0,
    HotWordGetWordPositionCurrent,
    HotWordGetWordPositionNext,
    HotWordGetWordPositionPre
}HotWordGetWordPosition;


typedef enum
{
    SliderOptionTypeProfile = 0,
    SliderOptionTypeExplore,
    SliderOptionTypeInbox,
    SliderOptionTypeQAWall,
    SliderOptionTypeBackToMain,
}SliderOptionType;


#define GENDER_ARRAY [NSArray arrayWithObjects:@"Boy",@"Girl", nil]
#define IDENTITY_ARRAY [NSArray arrayWithObjects:@"Student",@"Teacher", nil]
#define TEST_YEAR_ARRAY [CacheData sharedData].testYears
#define SAT_TEST_MONTH [NSArray arrayWithObjects:@"1",@"3",@"5",@"6",@"10",@"11",@"12", nil]
#define SAT_TEST_ADDRESS [NSArray arrayWithObjects:@"香港",@"台湾",@"澳门",@"新加坡",@"韩国",@"日本",@"泰国",@"柬埔寨",@"越南",@"蒙古",nil]

#define EXAM_ARRAY [NSArray arrayWithObjects:@"SAT",@"GRE",@"GMAT",@"SSAT",@"SAT II", @"AP",nil]
#define AGE_ARRAY [NSArray arrayWithObjects:@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"24",@"25",@"26",@"27",@"28",@"29",@"30",@"31",@"32",@"33",@"34",@"35",@"36",@"37",@"38",@"39",@"40",nil]

#define COMPLEX_RANKING_KEYS [NSArray arrayWithObjects:@"1~10名",@"11~20名",@"21~29名", @"31~40名", @"41~50名",@"51~60名",@"61~70名",@"71~80名",@"81~90名",@"91~100名",nil]

#define ARTS_RANKING_KEYS [NSArray arrayWithObjects:@"1~10名",@"11~20名",@"21~30名", @"31~40名", @"41~50名",nil]

#define SLIDER_BAR_OPTIONS [NSArray arrayWithObjects:@"My Profile",@"Explore",@"Inbox", @"Q&A Wall", @"Back to Main",nil]

#define QUEST_CATEGORY_TAGS [NSArray arrayWithObjects:@"考试",@"学校",@"专业", @"申请", @"考场",nil]

#define MAJOR_RANKING_KEYS [NSArray arrayWithObjects:@"NATURAL SCIENCES",@"ENGINEERING",@"SOCIAL AND BEHAVIORAL SCIENCES", @"ARTS AND HUMANITIES", @"EDUCATION", @"BUSINESS", @"OTHER FIELDS", nil]



#define IS_STRING_NOT_EMPTY(sting)    (sting && ![@"" isEqualToString:sting])
#define IS_STRING_EMPTY(sting)        (!sting || [@"" isEqualToString:sting])
#define APP_DELEGATE                  [HotWordAppDelegate sharedAppDelegate]

typedef enum
{
    HotWordUpdateDataGender = 0,
    HotWordUpdateDataExam,
    HotWordUpdateDataAge,
    HotWordUpdateDataIdentity,
    HotWordUpdateDataApplyYear,
    HotWordUpdateDataTestAndSection,
}HotWordUserUpdateType;